// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  app: {
    head: {
      viewport: 'width=device-width, initial-scale=1'
    }
  },
  ssr: false,
  components: true,

  modules: [
    '@nuxtjs/tailwindcss',
    '@nuxtjs/i18n',
    'nuxt-svgo',
    '@vueuse/nuxt',
    '@pinia/nuxt',
    '@nuxtjs/device'
  ],
  device: {
    refreshOnResize: true
  },

  runtimeConfig: {
    public: {
      baseURL: 'https://api.example.com/',
      envLabel: 'ERROR ENV'
    }
  },

  pinia: {
    autoImports: ['defineStore']
  },

  svgo: {
    autoImportPath: '~/assets/icons/'
  },

  css: ['~/assets/css/main.scss'],
  tailwindcss: { cssPath: '~/assets/css/tailwind.scss' }
})
